package com.tjhzzx.hnceCore2024.model.energy;

import com.tjhzzx.hnceCore2024.enums.BModuleType;
import com.tjhzzx.hnceCore2024.model.common.BCommonModule;

import javax.baja.sys.Flags;
import javax.baja.sys.Sys;
import javax.baja.sys.Type;

/**
 * @author Luc
 * @version 1.0
 * @date 2022-09-21 9:21
 */
public class BEnergyRankModule extends BCommonModule {

    public BEnergyRankModule() {
        String title = "能耗排名";
        String nIcon = "fund";
        String pagePath = "/EnergyRankModule";
        setTitle(title);
        setNIcon(nIcon);
        setModuleType(BModuleType.page);
        setPagePath(pagePath);
        this.setFlags(this.getSlot("moduleType"), Flags.READONLY);
        this.setFlags(this.getSlot("pagePath"), Flags.READONLY);
        this.setFlags(this.getSlot("dashboardRoot"), Flags.READONLY);
    }

    @Override
    public Type getType() {
        return TYPE;
    }

    public static final Type TYPE = Sys.loadType(BEnergyRankModule.class);
}
